package com.cfs.dao.sys;

import java.util.List;

import javax.ws.rs.PathParam;

import org.apache.ibatis.annotations.Param;

import com.cfs.po.sys.User;
import com.cfs.vo.Condition;


/**
 * 用户管理dao
 * 
 * @author SDZJ
 * 
 */
public interface UserDao {

	public Long insert(User u);

	public Integer delete(Long id);

	public Long update(User u);

	public User get(String name);

	public User getById(Long id);

	public Integer queryRows(Condition c);

	public List<User> list(Condition c);

	public List<User> listAll();
	
	
	public Long updState(Long id,int state);
	
	public Long updPass(Long id, String pass);

	// For LoginServices
	public User  getCheckPass(@Param("name")String name,@Param("pass")String pass);

}
